<!--
描述：user/index
-->
#set(jstree = true)

#@mgtlayout()
#define main()
<div class="r-row r-rsps">
  <!-- 左侧搜索区 -->
  <div class="r-col-3 r-p-tl-sm" style="overflow-y:auto;">
    <div class="r-row">
      <div class="r-col-6 r-m-b-sm">
        <div class="r-m-l-xs">
          <button type="button" class="r-ui"  id="btnSearchClear" style="width:100%;">清空</button>
        </div>
      </div>
      <div class="r-col-6 r-m-b-sm">
        <div class="r-m-r-xs">
          <button type="button" class="r-ui" id="btnSearch" style="width:100%;">搜索</button>
        </div>
      </div>
    </div>
    <div class="r-dataview">
      <div class="r-title r-dataview-header">搜索条件</div>
      <form id="searchUserFrm" class="r-set r-p-xs r-dataview-content">
        <div class="r-m-b">
          <input type="text" class="r-ui" id="txtSearchLoginId" name="loginId" data-r-opts="{label:'账号',labelStyle:'inline'}"/>
        </div>
        <div class="r-m-b">
          <input type="text" class="r-ui" id="txtSearchName" name="name" data-r-opts="{label:'名称',labelStyle:'inline'}"/>
        </div>
        #if(isAdmin == null || isAdmin == true)
        <div>
        #else
        <div class="r-hide">
        #end
          <div class="r-m-b">
            <input type="picker" id="comSearchUserCode" class="r-ui" name="userCode" data-r-opts="{label:'类型',labelStyle:'inline'}" />
          </div>
        </div>
        #if(isAdmin == null || isAdmin == true)
        <div>
        #else
        <div class="r-hide">
        #end
          <div class="r-m-b">
            <input type="picker" id="roleCheckBoxListSearch" class="r-ui" name="roleIds" data-r-opts="{label:'角色',labelStyle:'inline'}" />
          </div>
        </div>
        #if(isAdmin == null || isAdmin == true)
        <div>
        #else
        <div class="r-hide">
        #end
          <div class="r-m-b">
            <button type="button" class="r-ui" data-r-opts="{icon:'fa-plus'}" id="btnOpenAllTreeSearch"></button>
            <button type="button" class="r-ui" data-r-opts="{icon:'fa-minus'}"  id="btnCloseAllTreeSearch"></button>
            <button type="button" class="r-ui" data-r-opts="{icon:'fa-check',autoColor:false}" id="btnCheckedAllTreeSearch"></button>
            <button type="button" class="r-ui" data-r-opts="{icon:'fa-eraser'}" id="btnUncheckedAllTreeSearch"></button>
          </div>
          <div>
            <div class="r-label r-m-b-sm">机构</div>
            <div id="treeGroupSearch"></div>
          </div>
        </div>
      </form>
    </div>
  </div>

  <!-- 中间数据区 -->
  <div class="r-col-9">
    <div id="grd"></div>
  </div>
</div>

<div class="r-window" id="winUserGroup">
  <input type="hidden" id="hidUserIdGroup" name="userId"/>
  <div class="r-p r-hide">
    <button type="button" class="r-ui" data-r-opts="{icon:'fa-plus'}" id="btnOpenAllTreeSet"></button>
    <button type="button" class="r-ui" data-r-opts="{icon:'fa-minus'}" id="btnCloseAllTreeSet"></button>
    <button type="button" class="r-ui" data-r-opts="{icon:'fa-check'}" id="btnCheckedAllTreeSet"></button>
    <button type="button" class="r-ui" data-r-opts="{icon:'fa-times'}" id="btnUncheckedAllTreeSet"></button>
  </div>
  <div style="overflow:auto;height: 400px;">
    <div id="treeGroupSet" class="r-m-t"></div>
  </div>
</div>

<div class="r-window" id="winUserGroupData">
  <form class="r-set" onsubmit="return false;" id="frmUserGroupData">
    <input type="hidden"  id="hidUserIdGroupData" name="userId"/>
    <div class="r-row">
      <div class="r-col-12">
        <div class="r-row">
          <div class="r-col-12">
            <button type="button" class="r-ui" data-r-opts="{icon:'fa-plus-square-o'}" id="btnOpenAllTreeSetGD"></button>
            <button type="button" class="r-ui" data-r-opts="{icon:'fa-minus-square-o'}" id="btnCloseAllTreeSetGD"></button>
            <button type="button" class="r-ui" data-r-opts="{icon:'fa-check-circle-o'}" id="btnCheckedAllTreeSetGD">v</button>
            <button type="button" class="r-ui" data-r-opts="{icon:'fa-times-circle-o'}" id="btnUncheckedAllTreeSetGD">x</button>
          </div>
        </div>

        <div class="r-row">
          <div class="r-col-12" style="overflow:auto;height: 400px" >
            <div id="treeGroupDataSet" class="r-m-t"></div>
          </div>
        </div>
      </div>
    </div>
  </form>
</div>
#end

#define js()
#(yx.js("/script/pc/sysmgt/infrastructure/user/index.js"))
#end
